package com.team7.happycommunity.personcentor.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * (PersonUser)实体类
 *
 * @author makejava
 * @since 2020-03-20 19:21:36
 */
@ApiModel(value = "用户实体类")
public class PersonUser implements Serializable {
    private static final long serialVersionUID = 156440124825734371L;
    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "身份证")
    private String idNumber;
    @ApiModelProperty(value = "手机号")
    private String cellPhNumber;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "姓名")
    private String name;
    @ApiModelProperty(value = "性别")
    private Integer sex;
    @ApiModelProperty(value = "昵称")
    private String nickname;
    @ApiModelProperty(value = "邮箱")
    private String mailbox;
    @ApiModelProperty(value = "小区id")
    private Integer plotId;
    @ApiModelProperty(value = "标签")
    private String tag;
    @ApiModelProperty(value = "邮箱状态")
    private Integer mailboxStatus;
    @ApiModelProperty(value = "邮箱的令牌")
    private String code;
    @ApiModelProperty(value = "盐")
    private String passwordSalt;
    @ApiModelProperty(value = "账户创建时间")
    private Date createTime;
    @ApiModelProperty(value = "小区实体类")
    private Areainfo areainfo;
    @ApiModelProperty(value = "用户图片实体类")
    private List<PersonImage> personImage;
    @ApiModelProperty(value = "动态评论实体类")
    private List<CommunityDynamic> communityDynamic;



    public PersonUser(Integer id, String idNumber, String cellPhNumber, String password, String name, Integer sex, String nickname,  String mailbox, Integer plotId, String tag, Integer mailboxStatus, String code, String passwordSalt, Date createTime) {
        this.id = id;
        this.idNumber = idNumber;
        this.cellPhNumber = cellPhNumber;
        this.password = password;
        this.name = name;
        this.sex = sex;
        this.nickname = nickname;
        this.mailbox = mailbox;
        this.plotId = plotId;
        this.tag = tag;
        this.mailboxStatus = mailboxStatus;
        this.code = code;
        this.passwordSalt = passwordSalt;
        this.createTime = createTime;

    }


    public List<PersonImage> getPersonImage() {
        return personImage;
    }

    public void setPersonImage(List<PersonImage> personImage) {
        this.personImage = personImage;
    }

    public List<CommunityDynamic> getCommunityDynamic() {
        return communityDynamic;
    }

    public void setCommunityDynamic(List<CommunityDynamic> communityDynamic) {
        this.communityDynamic = communityDynamic;
    }

    public Areainfo getAreainfo() {
        return areainfo;
    }

    public void setAreainfo(Areainfo areainfo) {
        this.areainfo = areainfo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getCellPhNumber() {
        return cellPhNumber;
    }

    public void setCellPhNumber(String cellPhNumber) {
        this.cellPhNumber = cellPhNumber;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }


    public String getMailbox() {
        return mailbox;
    }

    public void setMailbox(String mailbox) {
        this.mailbox = mailbox;
    }

    public PersonUser() {
    }

    public Integer getPlotId() {
        return plotId;
    }

    public void setPlotId(Integer plotId) {
        this.plotId = plotId;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Integer getMailboxStatus() {
        return mailboxStatus;
    }

    public void setMailboxStatus(Integer mailboxStatus) {
        this.mailboxStatus = mailboxStatus;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPasswordSalt() {
        return passwordSalt;
    }

    public void setPasswordSalt(String passwordSalt) {
        this.passwordSalt = passwordSalt;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "PersonUser{" +
                "id=" + id +
                ", idNumber='" + idNumber + '\'' +
                ", cellPhNumber='" + cellPhNumber + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", nickname='" + nickname + '\'' +
                ", mailbox='" + mailbox + '\'' +
                ", plotId=" + plotId +
                ", tag='" + tag + '\'' +
                ", mailboxStatus=" + mailboxStatus +
                ", code='" + code + '\'' +
                ", passwordSalt='" + passwordSalt + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}